# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=hexdiff
pkgver=0.0.53
pkgrel=2
pkgdesc="ncurses hex editor with diff mode for binary file comparison"
url="http://tboudet.free.fr/hexdiff/"
arch="all"
license="GPL-2.0-or-later"
depends="ncurses-dev"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::http://tboudet.free.fr/hexdiff/hexdiff.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/HexDiff"

build() {
	make
}

package() {
	# broken 'make install'
	install -Dm755 hexdiff -t $pkgdir/usr/bin
	install -Dm644 hexdiff.1 -t $pkgdir/usr/share/man/man1
	install -Dm644 hexdiff.rc -t "$pkgdir"/etc/hexdiff
}

sha512sums="
3860aa286282604c2dc44fbb32329f28761cf16339dfa3c9f537e4fc2ec31742d59d19bc52935de979bb7397c7ee331846e528d3d2efe10e93ddc5d838fd3ce7  hexdiff-0.0.53.tar.gz
"
